package cn.xing.managementSystem.repository;

import cn.xing.managementSystem.domain.Student;
import cn.xing.managementSystem.repository.base.BaseEntityRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author cuixing
 * @package cn.xing.managementSystem.repository
 * @class StudentRepository
 * @email xing.cui@magicwindow.cn
 * @date 2018/4/25 下午1:35
 * @description
 */
public interface StudentRepository extends BaseEntityRepository<Student> {

    Page<Student> findByDeletedIsFalse(Pageable pageable);

    Student findByIdAndAndDeletedIsFalse(Long id);

    List<Student> findByDeletedIsFalse();
}